package b02static;

public class Person {
  private String name;
  private String sex;
  private String age;

    public Person() {
    }

    public Person(String name, String sex, String age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
    public String toString(){
       String a= name+sex+age;
        System.out.println(a);
       return a;
    }
}
